package com.weigang.mongodb.dao;

import com.weigang.mongodb.entity.Book;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface BookDao extends MongoRepository<Book,Integer> {
        List<Book> findByAuthorContains(String author) ;
        Book findByNameEquals(String name );
}
